__author__ = 'East'

school = 'Oldboy edu'

def change_name(name):
    global school   # 修改全局变量
    school = 'Mage Linux'
    print('before change', name)
    name = 'Alex li'
    age = 23
    print('after change', name)

name = 'alex'
change_name(name)
print(name)
# print('age: ' + age) 出错
print(school)